package cn.fly.blog.common.db.entity;

import cn.fly.blog.common.constant.DStatus;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.ibatis.type.JdbcType;

public abstract class StandardEntity {

    /**
     * 雪花算法生成数据库ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "status", jdbcType = JdbcType.TINYINT)
    private DStatus status;
}
